<!-- MASTER BACKLOG VIEW -->
<%- content_for :head_tags do %>
  <script type="text/javascript" src="<%= url_for(:controller => 'rb_server_variables', :action => 'show', :id => @project.id, :format => :js) %>"></script>
  <%= javascript_include_tag    'master_backlog', 'backlog', 'model', 'editable_inplace', 'sprint', 'issue', 'story', 'board_updater', 'master_backlog_updater', :plugin => 'redmine_backlogs' %>
  <%= stylesheet_link_tag 'jqplot.css', :plugin => 'redmine_backlogs' %>
  <%= theme_stylesheet_link_tag 'master_backlog.css', :media => 'print,screen' %>
  <%= theme_stylesheet_link_tag 'master_backlog_print.css', :media => 'print' %>
<%- end %>

<%- content_for :breadcrumbs do %>
  <%= l(:label_master_backlog) %>
<%- end %>

<%- content_for :view_specific_links do %>
  <a id="project_info">Info</a>
  <a id="disable_autorefresh">Disable Auto-refresh</a>
  <a id="refresh">Refresh</a>
<%- end %>

<%- content_for :main do %>
  <div id="backlogs_container">
    <div id="product_backlog_container">
      <%= render :partial => 'backlog', :object => @product_backlog %>
    </div>
    <div id="sprint_backlogs_container">
      <%= render :partial => 'backlog', :collection => @sprint_backlogs %>
    </div>
  </div>
<%- end %>

<%- content_for :helpers do %>
  <div id="sprint_template">
    <%- sprint = Sprint.new( :name => "sprint" ) -%>
    <%- sprint_backlog = { :sprint => sprint, :stories => nil } -%>
    <%= render :partial => "backlog", :object => sprint_backlog %>
  </div>
<%= render :partial => "rb_stories/helpers" %>
<div id="last_updated"><%= date_string_with_milliseconds(@last_update, 0.001) %></div>
<%- end %>
